<!doctype html>
<html>
	<head>
	</head>
	<body>
		<script src="../ocrad.js"></script>
		<script>
			function OCRImage(image){
				var canvas = document.createElement('canvas')
				canvas.width  = image.naturalWidth;
				canvas.height = image.naturalHeight;
				canvas.getContext('2d').drawImage(image, 0, 0)
				return OCRAD(canvas)
			}
		</script>
		<img src="message.png" onload="alert(OCRImage(this))">
	</body>	
</html>


